def count_sort(li):
    count=[0 for _ in range(len(li))]
    for val in li:
        count[val]+=1
    li.clear()
    for ind,val in enumerate(count):
        for i in range(val):
            li.append(ind)
    return li

import random

li=[random.randint(0,100) for _ in range(1000)]
print(li)
print(count_sort(li))
